/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package backing;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;

/**
 *
 * @author XJ
 */
@ManagedBean
public class BusinessTripBacking {
    @ManagedProperty(value="")
    private String applier;
    @ManagedProperty(value="")
    private String number;
    @ManagedProperty(value="")
    private String task;
    @ManagedProperty(value="")
    private String destination;
    @ManagedProperty(value="")
    private String time_span;
    @ManagedProperty(value="")
    private String school_opinion;
    @ManagedProperty(value="")   
    private String college_opinion;
    private String decision;

    public String getDecision() {
        return decision;
    }

    public void setDecision(String decision) {
        this.decision = decision;
    }
    
    private String[] disabled=new String[3];
    
    
    public BusinessTripBacking() {
    }

    public String getApplier() {
        return applier;
    }

    public void setApplier(String applier) {
        this.applier = applier;
    }

    public String getCollege_opinion() {
        return college_opinion;
    }

    public void setCollege_opinion(String college_opinion) {
        this.college_opinion = college_opinion;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getSchool_opinion() {
        return school_opinion;
    }

    public void setSchool_opinion(String school_opinion) {
        this.school_opinion = school_opinion;
    }

    public String getTask() {
        return task;
    }

    public void setTask(String task) {
        this.task = task;
    }

    public String getTime_span() {
        return time_span;
    }

    public void setTime_span(String time_span) {
        this.time_span = time_span;
    }

    public String[] getDisabled() {
        return disabled;
    }

    public void setDisabled(String[] disabled) {
        this.disabled = disabled;
    }
    
    
    public String commitForm(){
        String outcome=null;
        return outcome;
    }
    
    public String setPermission(){
        String[] s={"false","true","true"};
        this.setDisabled(s);
        return "business_trip_form";
    }
    public String fillForm(String s){
        if(s.equals("apply"))
            this.setPermission();
        return "business_trip_form";
    }
}
